package smartt.styy.auth.model.request;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@JsonAutoDetect(fieldVisibility = Visibility.NONE, getterVisibility = Visibility.NONE, setterVisibility = Visibility.NONE)
@JsonInclude(value = JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
@ApiModel
public class RegisterInfoReq {

	@JsonProperty("username")
	@ApiModelProperty(name = "username", value = "用户账号", required = true)
	@Setter @Getter
	private String username;
	
	@JsonProperty("password")
	@ApiModelProperty(name = "password", value = "用户密码", required = true)
	@Setter @Getter
	private String password;
	
	@JsonProperty("userType")
	@ApiModelProperty(name = "userType", value = "用户类型  1:游客，2：导游，3：旅行社，4,：游企（景区，酒店），5：政府", required = true)
	@Setter @Getter
	private Integer userType;

	@JsonProperty("parentId")
	@ApiModelProperty(name = "parentId", value = "父账号id(用于添加子账号)", required = false)
	@Setter @Getter
	private Integer parentId;
	
}
